package com.cy.pj.common.service;

import com.cy.pj.log.pojo.SysLog;
import com.cy.pj.log.service.RemoteLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncLogService {
    @Autowired
    private RemoteLogService remoteLogService;

    /**
     * 保存系统日志记录
     */
    @Async
    public void saveSysLog(SysLog sysLog)
    {
        remoteLogService.saveLog(sysLog);
    }
}
